package com.mdjnu.service.imp;

import com.mdjnu.mapper.CategoriesMapper;
import com.mdjnu.pojo.Categories;
import com.mdjnu.service.CategoriesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CategoriesServiceImp implements CategoriesService {
    // 注入mapper
    @Autowired
    private CategoriesMapper categoriesMapper;
    // 查询所有分类
    @Override
    public List<Categories> getAllCategories() {
        return categoriesMapper.getAllCategories();
    }
}
